package cn.icanci.loopstack.bic.dal.mongo.daointerface;

import cn.icanci.loopstack.bic.dal.mongo.dateobject.NodeDO;

/**
 * @author icanci
 * @since 1.0 Created in 2023/09/11 22:59
 */
public interface NodeDAO extends BaseDAO<NodeDO> {
    /** 文档对应的名字  */
    String        COLLECTION_NAME  = BASE_COLLECTION_NAME + "node";
    /** 文档对应的Class */
    Class<NodeDO> COLLECTION_CLASS = NodeDO.class;

    NodeDO queryBySystemUuidAndName(String systemUuid, String name);

    NodeDO queryBySystemUuidAndKey(String systemUuid, String key);

    NodeDO queryByUuid(String nodeUuid);

    /** 列 */
    interface NodeColumn extends BaseColumn {
        String NODE_NAME   = "nodeName";

        String NODE_KEY    = "nodeKey";

        String SYSTEM_UUID = "systemUuid";
    }
}
